/*
 * @Descripttion:
 * @version: 1.0.0
 * @Author: LSC
 * @Date: 2022-04-05 21:46:19
 * @LastEditors: LSC
 * @LastEditTime: 2022-04-07 00:38:02
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import _ from 'lodash'
import moment from 'moment'
// import 'echarts'
import '@/assets/main.css'
// import * as Echarts from 'echarts'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
import VueEcharts from 'vue-echarts';
Vue.component('vue-echarts', VueEcharts)
import VueDraggableResizable from 'vue-draggable-resizable'
// optionally import default styles
import 'vue-draggable-resizable/dist/VueDraggableResizable.css'
import draggable from 'vuedraggable';
Vue.component('draggable', draggable);
Vue.component('vue-draggable-resizable', VueDraggableResizable)
import vdr from 'vue-draggable-resizable-gorkys'
// 导入默认样式
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'
Vue.component('vdr', vdr)
import Editor from 'bin-ace-editor';
require('brace/ext/emmet') // 如果是lang=html时需引入
require('brace/ext/language_tools') // language extension
require('brace/mode/json')
require('brace/snippets/json')
require('brace/theme/chrome')
// 注册组件后即可使用
Vue.component('my-editor', Editor)

// 地图
//引入echarts
import * as echarts from 'echarts/core';
//图表类型按需
import {
  BarChart,
  LineChart
} from 'echarts/charts';
//组件类型按需
import {
  TitleComponent,
  TooltipComponent,
  GridComponent,
  VisualMapComponent //!!!!地图必不可缺的组件
} from 'echarts/components';
import {
  CanvasRenderer
} from 'echarts/renderers';
//注册组件
echarts.use(
  [TitleComponent, TooltipComponent, GridComponent, BarChart, LineChart, CanvasRenderer, VisualMapComponent]
);
//全局引入echarts
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
// Vue.prototype.$echarts = Echarts

// datav
// import dataV from '@jiaminghi/data-view'
// Vue.use(dataV)
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
